<?php 
	include '../dbc.php';
	$email = $_POST['btg_email'];
	$pw = $_POST['btg_pw1'];
	$md5pw= md5($pw);
	$sql="UPDATE admin SET password='$md5pw' WHERE email='$email'";
	
	if(mysql_query($sql)){
		echo $email."'s pw successfully reset!";
	}else{
		echo "Fail to reset ".$email."'s pw! Please contact system admin!";
	}
?>